package com.wn.controller;


import com.wn.bean.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController extends BaseController{

    @GetMapping("hello")
    public String sayHello(){
        return "hello World";
    }

    @GetMapping("demo01")
    public Result demo01(){
        return success();
    }

    @GetMapping("demo02")
    public Result demo02(){
        return toDataResult("加油冲击12K");
    }
}
